package com.etc.entity;

import org.springframework.stereotype.Component;

@Component
public class User {
    private String userId;
    private String userName;
    private String userPwd;
    private String userImg;
    private String userRealName;
    private String userTel;
    private String userRealID;
    private int status;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }

    public String getUserRealName() {
        return userRealName;
    }

    public void setUserRealName(String userRealName) {
        this.userRealName = userRealName;
    }

    public String getUserTel() {
        return userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel;
    }

    public String getUserRealID() {
        return userRealID;
    }

    public void setUserRealID(String userRealID) {
        this.userRealID = userRealID;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public User() {
    }

    public User(String userId, String userName, String userPwd, String userImg, String userRealName, String userTel, String userRealID, int status) {
        this.userId = userId;
        this.userName = userName;
        this.userPwd = userPwd;
        this.userImg = userImg;
        this.userRealName = userRealName;
        this.userTel = userTel;
        this.userRealID = userRealID;
        this.status = status;
    }

    public User(String userName, String userPwd, String userRealName, String userTel, String userRealID) {
        this.userName = userName;
        this.userPwd = userPwd;
        this.userRealName = userRealName;
        this.userTel = userTel;
        this.userRealID = userRealID;
    }

    public User(String userName, String userPwd, String userImg, String userRealName, String userTel, String userRealID) {
        this.userName = userName;
        this.userPwd = userPwd;
        this.userImg = userImg;
        this.userRealName = userRealName;
        this.userTel = userTel;
        this.userRealID = userRealID;
    }

    public User(String userName, String userRealName, String userTel, String userRealID) {
        this.userName = userName;
        this.userRealName = userRealName;
        this.userTel = userTel;
        this.userRealID = userRealID;
    }

    public User(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", userPwd='" + userPwd + '\'' +
                ", userImg='" + userImg + '\'' +
                ", userRealName='" + userRealName + '\'' +
                ", userTel='" + userTel + '\'' +
                ", userRealID='" + userRealID + '\'' +
                ", status=" + status +
                '}';
    }
}
